import { DataConditions } from "@/components/search-bar/types";

// 与vue2的里面的data一样，函数返回新对象防止多处共用同一对象,造成数据混乱
export const getSearchSchema = (): DataConditions => ({
    title: 'UMS-ADMIN',
    conditions: [
        {
            type: "input",
            label: "帐号/姓名",
            field: "keyword",
            width: 4,
            value: '',
            props: {
                allowClear: true,
                placeholder: "请输入帐号或姓名"
            }
        }
    ],
    addText: '新增',
    submitText: '查询',
    cancelText: '重置'
})
